import request from '../utils/request'

type ApiRes<T> = {
  data: T
  message: string
}

export const channels = () => {
  return request<
    any,
    ApiRes<{
      channels: { id: number; name: string }[]
    }>
  >({
    url: '/channels'
  })
}
